package collection;

import java.text.SimpleDateFormat;
import java.util.Date;

public class MapData {
	String userID, irum, phone;
	Date nal;

	public MapData(String id, String irum, String phone) {
		this.userID = id;
		this.irum = irum;
		this.phone = phone;
		this.nal = new Date();
	}

	public String getUserID() {
		return userID;
	}

	public String getIrum() {
		return irum;
	}

	public String getPhone() {
		return phone;
	}

	public Date getNal() {
		return nal;
	}

	@Override
	public String toString() {
		SimpleDateFormat sd = new SimpleDateFormat("yyyy-MM-dd");
		String temp = sd.format(nal);
		String str = String.format("%-10s%-10s%-15s%-12s\n", userID, irum,
				phone, temp);
		return str;
	}

}
